package com.ethink.system.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.system.api.info.SystemApiAuthorityInfo;
import com.ethink.system.api.request.SystemApiAuthorityQueryRequest;
import com.ethink.system.common.entity.SystemApiAuthority;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 系统接口权限表 Mapper接口
 *
 * @author default
 * @date 2022-09-27
 */
@Mapper
public interface SystemApiAuthorityMapper extends BaseMapper<SystemApiAuthority> {

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<SystemApiAuthorityInfo> querySystemApiAuthority(Page buildPage, @Param("request") SystemApiAuthorityQueryRequest request);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    SystemApiAuthorityInfo getSystemApiAuthorityById(@Param("id") Long id);

    /**
     * 列表查询
     *
     * @param request
     * @return
     */
    List<SystemApiAuthorityInfo> listSystemApiAuthority(@Param("request") SystemApiAuthorityQueryRequest request);

}